import request from '@/utils/request'

export function addEnterprise(data) {
  return request({
    url: '/system/user/enterprise',
    method: 'post',
    data
  })
}

export function deleteEnterprise(ids) {
  return request({
    url: `/system/user/enterprise/${ids}`,
    method: 'delete'
  })
}

export function updateEnterprise(data) {
  return request({
    url: `/system/user/enterprise`,
    method: 'put',
    data
  })
}

export function listEnterprise(params) {
  return request({
    url: `/system/user/enterprise`,
    method: 'get',
    params
  })
}

export function getEnterprise(id) {
  return request({
    url: `/system/user/enterprise/${id}`,
    method: 'get'
  })
}
